//
//  SocialPhotoBrowserCell.m
//  ShowYork
//
//  Created by hxh on 2020/9/23.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "SocialPhotoBrowserCell.h"

@interface SocialPhotoBrowserCell ()
@property (nonatomic,strong)UIImageView *containImgView;
@end

@implementation SocialPhotoBrowserCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUI];
    }
    return self;
}

- (void)setUI{
    self.containImgView = [[UIImageView alloc]init];
    self.containImgView.contentMode = UIViewContentModeScaleAspectFit;
    [self.contentView addSubview:self.containImgView];
    
    [self.containImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.left.right.equalTo(self.contentView);
    }];
}

- (void)setContainImg:(UIImage *)img{
    self.containImgView.image = img;
}

@end
